package jmu.wj.mapper;

import jmu.wj.pojo.User;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author jxxyw
 */
@Mapper
@Repository
public interface UserMapper {
    /**
     * 增加一个用户
     * @param user
     */
    void save(User user);

    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    User findByUsername(String username);
}
